﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
   public class Resources
    {
       public int ID { get; set; }
       //Група номенклатури
       public string GroupNomenclature { get; set; }
       //Номенклатурний номер ресурса
       public string NumberNomenclature { get; set; }
       //Назва ресурса
       public string Name { get; set; }

       public Dictionary<string, string> ResourcseFields { get; private set; }
       public Dictionary<string, string> RefNomFields { get; private set; }

       Resources() { }

       Resources(int id, string groupNomenclature, string numberNomenclature, string name)
       {
           this.ID = id;
           this.GroupNomenclature = groupNomenclature;
           this.NumberNomenclature = numberNomenclature;
           this.Name = name;

           ResourcseFields = new Dictionary<string, string>(2);
           ResourcseFields.Add("Name", Name);
           ResourcseFields.Add("NumberNomenclature", NumberNomenclature);

           RefNomFields = new Dictionary<string, string>(1);
           RefNomFields.Add("GroupNomenclature", GroupNomenclature);
       }
    }
}
